
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>时钟管理 · book for xbook2</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="jason hu">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../mm/mm.html" />
    
    
    <link rel="prev" href="../task/task.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://book-os.org" target="_blank" class="custom-link">bookos</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" >
            
                <span>
            
                    
                    xbook2文档中心
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" >
            
                <span>
            
                    
                    简介
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    xbook2 简介
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.2" >
            
                <span>
            
                    
                    快速上手
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.2.1" data-path="../../tutorial/quick-start.html">
            
                <a href="../../tutorial/quick-start.html">
            
                    
                    Qemu x86
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.3" >
            
                <span>
            
                    
                    内核
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.1" data-path="../base/base.html">
            
                <a href="../base/base.html">
            
                    
                    内核基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.2" data-path="../task/task.html">
            
                <a href="../task/task.html">
            
                    
                    任务管理
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.1.3.3" data-path="timer.html">
            
                <a href="timer.html">
            
                    
                    时钟管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.4" data-path="../mm/mm.html">
            
                <a href="../mm/mm.html">
            
                    
                    内存管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.5" data-path="../device/device.html">
            
                <a href="../device/device.html">
            
                    
                    设备管理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.5.1" data-path="../device/ahci.html">
            
                <a href="../device/ahci.html">
            
                    
                    AHCI磁盘驱动分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.5.2" data-path="../device/keyboard.html">
            
                <a href="../device/keyboard.html">
            
                    
                    PS/2键盘驱动分析
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.4" >
            
                <span>
            
                    
                    用户
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.4.1" data-path="../user/user.html">
            
                <a href="../user/user.html">
            
                    
                    用户编程
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.5" >
            
                <span>
            
                    
                    other
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.5.1" data-path="../../other/FAQS.html">
            
                <a href="../../other/FAQS.html">
            
                    
                    FAQS
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >时钟管理</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x65F6;&#x949F;&#x7BA1;&#x7406;">&#x65F6;&#x949F;&#x7BA1;&#x7406;</h1>
<p>&#x5728;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x4E2D;&#xFF0C;&#x65F6;&#x95F4;&#x7684;&#x6700;&#x5C0F;&#x5355;&#x4F4D;&#x662F;&#x65F6;&#x949F;&#x8282;&#x62CD;&#xFF08;clock ticks&#xFF09;&#xFF0C;&#x57FA;&#x4E8E;&#x8FD9;&#x4E2A;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x5B9A;&#x65F6;&#x5668;&#x6765;&#x505A;&#x4E00;&#x4E9B;&#x60F3;&#x505A;&#x7684;&#x4E8B;&#x60C5;&#xFF0C;&#x9664;&#x6B64;&#x4E4B;&#x5916;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x7528;&#x6765;&#x8BA1;&#x7B97;&#x5899;&#x4E0A;&#x65F6;&#x95F4;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x8BA1;&#x7B97;&#x73B0;&#x5728;&#x7684;&#x65F6;&#x95F4;&#xFF0C;&#x51E0;&#x65F6;&#x51E0;&#x5206;&#x51E0;&#x79D2;&#x3002;&#x8BFB;&#x5B8C;&#x672C;&#x7AE0;&#xFF0C;&#x6211;&#x4EEC;&#x5C06;&#x4E86;&#x89E3;&#x65F6;&#x949F;&#x8282;&#x62CD;&#x5982;&#x4F55;&#x4EA7;&#x751F;&#xFF0C;&#x5E76;&#x5B66;&#x4F1A;&#x4F7F;&#x7528;xbook2&#x7684;&#x5B9A;&#x65F6;&#x5668;&#x3002;</p>
<h2 id="&#x65F6;&#x949F;&#x8282;&#x62CD;">&#x65F6;&#x949F;&#x8282;&#x62CD;</h2>
<p>&#x65F6;&#x949F;&#x8282;&#x62CD;&#x5C31;&#x662F;&#xFF0C;&#x53EF;&#x4EE5;&#x5BF9;&#x67D0;&#x4E2A;&#x65F6;&#x949F;&#x786C;&#x4EF6;&#x8FDB;&#x884C;&#x7F16;&#x7A0B;&#xFF0C;&#x63A7;&#x5236;&#x5B83;1s&#x4EA7;&#x751F;&#x591A;&#x5C11;&#x6B21;&#x65F6;&#x949F;&#x4E2D;&#x65AD;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x7528;&#x4E00;&#x4E2A;&#x53D8;&#x91CF;<code>sys_ticks</code>&#x6765;&#x8BB0;&#x5F55;&#x8FD9;&#x4E2A;&#x6B21;&#x6570;&#xFF0C;&#x53EF;&#x4EE5;&#x662F;10&#x6B21;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x662F;100&#x6B21;&#xFF0C;&#x751A;&#x81F3;&#x662F;1000&#x6B21;&#x3002;&#x90A3;&#x4E48;&#x8FD9;&#x4E2A;&#x5C31;&#x662F;&#x65F6;&#x949F;&#x8282;&#x62CD;&#x3002;xbook2&#x4E2D;&#x901A;&#x8FC7;<code>HZ</code>&#x8FD9;&#x4E2A;&#x53D8;&#x91CF;&#x6765;&#x8868;&#x660E;1s&#x53EF;&#x4EE5;&#x4EA7;&#x751F;&#x7684;&#x65F6;&#x949F;&#x8282;&#x62CD;&#x6570;&#x91CF;&#x3002;</p>
<h2 id="&#x65F6;&#x949F;&#x8282;&#x62CD;&#x7684;&#x5B9E;&#x73B0;&#x65B9;&#x5F0F;">&#x65F6;&#x949F;&#x8282;&#x62CD;&#x7684;&#x5B9E;&#x73B0;&#x65B9;&#x5F0F;</h2>
<p>&#x5F53;&#x65F6;&#x949F;&#x4E2D;&#x65AD;&#x4EA7;&#x751F;&#x65F6;&#xFF0C;&#x6211;&#x4EEC;&#x5C06;<code>sys_ticks+=1</code>&#xFF0C;&#x6211;&#x4EEC;&#x7684;&#x5B9A;&#x65F6;&#x5668;&#x548C;&#x5899;&#x4E0A;&#x65F6;&#x95F4;&#x5C31;&#x662F;&#x57FA;&#x4E8E;sys_ticks&#x6765;&#x7684;&#x3002;</p>
<pre><code class="lang-c"><span class="hljs-function"><span class="hljs-keyword">static</span> <span class="hljs-keyword">int</span> <span class="hljs-title">clock_handler</span><span class="hljs-params">(irqno_t irq, <span class="hljs-keyword">void</span> *data)</span>
</span>{
    systicks++;
    timer_ticks++;
    softirq_active(TIMER_SOFTIRQ);
    softirq_active(SCHED_SOFTIRQ);
    <span class="hljs-keyword">return</span> <span class="hljs-number">0</span>;
}
</code></pre>
<h2 id="&#x83B7;&#x53D6;&#x65F6;&#x949F;&#x8282;&#x62CD;">&#x83B7;&#x53D6;&#x65F6;&#x949F;&#x8282;&#x62CD;</h2>
<p>&#x53EF;&#x4EE5;&#x901A;&#x8FC7;<code>sys_get_ticks</code>&#x6765;&#x83B7;&#x53D6;&#x5F53;&#x524D;&#x7684;ticks&#x503C;&#x3002;</p>
<pre><code class="lang-c"><span class="hljs-keyword">clock_t</span> sys_get_ticks()
{
    <span class="hljs-keyword">return</span> systicks;
}
</code></pre>
<h2 id="&#x5B9A;&#x65F6;&#x5668;&#x7BA1;&#x7406;">&#x5B9A;&#x65F6;&#x5668;&#x7BA1;&#x7406;</h2>
<p>&#x5B9A;&#x65F6;&#x5668;&#x5C31;&#x662F;&#x4F60;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;&#x65F6;&#x95F4;&#x70B9;&#xFF0C;&#x5F53;&#x5230;&#x8FBE;&#x8FD9;&#x4E2A;&#x65F6;&#x95F4;&#x70B9;&#x65F6;&#xFF0C;&#x5C06;&#x4F1A;&#x4EA7;&#x751F;&#x8D85;&#x65F6;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x5728;&#x8D85;&#x65F6;&#x70B9;&#x505A;&#x4E00;&#x4E9B;&#x4F60;&#x60F3;&#x505A;&#x7684;&#x4E8B;&#x60C5;&#x3002;</p>
<pre><code class="lang-c"><span class="hljs-keyword">struct</span> timer_struct;
<span class="hljs-comment">// callback(timer, arg)</span>
<span class="hljs-function"><span class="hljs-keyword">typedef</span> <span class="hljs-title">void</span> <span class="hljs-params">(*timer_callback_t)</span> <span class="hljs-params">(<span class="hljs-keyword">struct</span> timer_struct *, <span class="hljs-keyword">void</span> *)</span></span>; 
<span class="hljs-comment">/* &#x5B9A;&#x65F6;&#x5668; */</span>
<span class="hljs-keyword">typedef</span> <span class="hljs-keyword">struct</span> timer_struct {
    <span class="hljs-keyword">list_t</span> <span class="hljs-built_in">list</span>;                <span class="hljs-comment">/* &#x5B9A;&#x65F6;&#x5668;&#x94FE;&#x8868; */</span>
    <span class="hljs-keyword">clock_t</span> timeout;            <span class="hljs-comment">/* &#x8D85;&#x65F6;&#x70B9;&#xFF0C;&#x4EE5;ticks&#x4E3A;&#x5355;&#x4F4D; */</span>
    <span class="hljs-keyword">void</span> *arg;                  <span class="hljs-comment">/* &#x53C2;&#x6570; */</span>
    <span class="hljs-keyword">unsigned</span> <span class="hljs-keyword">long</span> id;           <span class="hljs-comment">/* &#x5B9A;&#x65F6;&#x5668;&#x7684;id&#x503C; */</span>
    <span class="hljs-keyword">timer_callback_t</span> callback;  <span class="hljs-comment">/* &#x56DE;&#x8C03;&#x51FD;&#x6570; */</span>
} <span class="hljs-keyword">timer_t</span>;
</code></pre>
<p>&#x5B9A;&#x65F6;&#x5668;&#x6709;&#x4E00;&#x4E2A;&#x56DE;&#x8C03;&#x51FD;&#x6570;&#xFF0C;&#x5C31;&#x662F;&#x8D85;&#x65F6;&#x65F6;&#x4F1A;&#x53BB;&#x8C03;&#x7528;&#x7684;&#x51FD;&#x6570;&#xFF0C;&#x6765;&#x6267;&#x884C;&#x4F7F;&#x7528;&#x8005;&#x9700;&#x8981;&#x6267;&#x884C;&#x7684;&#x5185;&#x5BB9;&#x3002;</p>
<h2 id="&#x5899;&#x4E0A;&#x65F6;&#x95F4;&#x7BA1;&#x7406;">&#x5899;&#x4E0A;&#x65F6;&#x95F4;&#x7BA1;&#x7406;</h2>
<p>&#x5899;&#x4E0A;&#x65F6;&#x95F4;&#x5728;xbook2&#x4E2D;&#x5C31;&#x662F;&#x8BA1;&#x7B97;&#x5E74;&#x6708;&#x65E5;&#xFF0C;&#x65F6;&#x5206;&#x79D2;&#x7684;&#x65F6;&#x95F4;&#x3002;</p>
<pre><code class="lang-c"><span class="hljs-keyword">typedef</span> <span class="hljs-keyword">struct</span> {
    <span class="hljs-keyword">int</span> second;         <span class="hljs-comment">/* [0-59] */</span>
    <span class="hljs-keyword">int</span> minute;         <span class="hljs-comment">/* [0-59] */</span>
    <span class="hljs-keyword">int</span> hour;           <span class="hljs-comment">/* [0-23] */</span>
    <span class="hljs-keyword">int</span> day;            <span class="hljs-comment">/* [1-31] */</span>
    <span class="hljs-keyword">int</span> month;          <span class="hljs-comment">/* [1-12] */</span>
    <span class="hljs-keyword">int</span> year;           <span class="hljs-comment">/* year */</span>
    <span class="hljs-keyword">int</span> week_day;       <span class="hljs-comment">/* [0-6] */</span>
    <span class="hljs-keyword">int</span> year_day;       <span class="hljs-comment">/* [0-366] */</span>
} <span class="hljs-keyword">walltime_t</span>;
</code></pre>
<p>&#x6700;&#x5F00;&#x59CB;&#x8FD9;&#x4E9B;&#x65F6;&#x95F4;&#x503C;&#x662F;&#x4ECE;&#x786C;&#x4EF6;&#x83B7;&#x53D6;&#xFF0C;&#x83B7;&#x53D6;&#x540E;&#xFF0C;&#x6211;&#x4EEC;&#x4FBF;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x65F6;&#x949F;&#x8282;&#x62CD;sys_ticks&#x6765;&#x5224;&#x65AD;&#x662F;&#x5426;&#x66F4;&#x65B0;&#x8FD9;&#x4E9B;&#x65F6;&#x95F4;&#x503C;&#x3002;</p>
<pre><code class="lang-c"><span class="hljs-function"><span class="hljs-keyword">void</span> <span class="hljs-title">walltime_init</span><span class="hljs-params">()</span>
</span>{
    <span class="hljs-comment">/* &#x521D;&#x59CB;&#x5316;&#x7CFB;&#x7EDF;&#x65F6;&#x95F4; */</span>
    <span class="hljs-comment">//&#x7528;&#x4E00;&#x4E2A;&#x5FAA;&#x73AF;&#x8BA9;&#x79D2;&#x76F8;&#x7B49;</span>
    <span class="hljs-keyword">do</span>{
        walltime.year      = time_get_year();
        walltime.month     = time_get_month();
        walltime.day       = time_get_day();
        walltime.hour      = time_get_hour();
        walltime.minute    =  time_get_minute();
        walltime.second    = time_get_second();

        <span class="hljs-comment">/* &#x8F6C;&#x6362;&#x6210;&#x672C;&#x5730;&#x65F6;&#x95F4; */</span>
        <span class="hljs-comment">/* &#x81EA;&#x52A8;&#x8F6C;&#x6362;&#x65F6;&#x533A; */</span>
<span class="hljs-meta">#<span class="hljs-meta-keyword">ifdef</span> CONFIG_TIMEZONE_AUTO</span>
        <span class="hljs-keyword">if</span>(walltime.hour &gt;= <span class="hljs-number">16</span>){
            walltime.hour -= <span class="hljs-number">16</span>;
        }<span class="hljs-keyword">else</span>{
            walltime.hour += <span class="hljs-number">8</span>;
        }
<span class="hljs-meta">#<span class="hljs-meta-keyword">endif</span> <span class="hljs-comment">/* CONFIG_TIMEZONE_AUTO */</span></span>
    }<span class="hljs-keyword">while</span>(walltime.second != time_get_second());

    walltime.week_day = walltime_get_week_day(walltime.year, walltime.month, walltime.day);
    walltime.year_day = walltime_get_year_days();

    walltime_printf();
}
</code></pre>
<pre><code class="lang-c"><span class="hljs-function"><span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">timer_softirq_handler</span><span class="hljs-params">(softirq_action_t *action)</span>
</span>{
    <span class="hljs-keyword">if</span> (systicks % HZ == <span class="hljs-number">0</span>) {  <span class="hljs-comment">/* 1s&#x66F4;&#x65B0;&#x4E00;&#x6B21; */</span>
        walltime_update_second();
    }
    timer_update_ticks();
    alarm_update_ticks();
}
</code></pre>
<p>&#x7528;&#x6237;&#x7A0B;&#x5E8F;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x7CFB;&#x7EDF;&#x8C03;&#x7528;&#x6765;&#x83B7;&#x53D6;&#x8FD9;&#x4E2A;&#x65F6;&#x95F4;&#x503C;&#xFF0C;&#x4ECE;&#x800C;&#x5F97;&#x77E5;&#x5F53;&#x524D;&#x7684;&#x65E5;&#x671F;&#x548C;&#x65F6;&#x95F4;&#x3002;</p>
<pre><code class="lang-c"><span class="hljs-function"><span class="hljs-keyword">int</span> <span class="hljs-title">sys_get_walltime</span><span class="hljs-params">(walltime_t *wt)</span>
</span>{
    <span class="hljs-keyword">walltime_t</span> tmp = walltime;
    --tmp.month;
    <span class="hljs-keyword">return</span> mem_copy_to_user(wt, &amp;tmp, <span class="hljs-keyword">sizeof</span>(<span class="hljs-keyword">walltime_t</span>));
}
</code></pre>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; BookOS-developers 2021 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2021-06-16
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../task/task.html" class="navigation navigation-prev " aria-label="Previous page: 任务管理">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../mm/mm.html" class="navigation navigation-next " aria-label="Next page: 内存管理">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"时钟管理","level":"1.1.3.3","depth":3,"next":{"title":"内存管理","level":"1.1.3.4","depth":3,"path":"programing-manual/mm/mm.md","ref":"programing-manual/mm/mm.md","articles":[]},"previous":{"title":"任务管理","level":"1.1.3.2","depth":3,"path":"programing-manual/task/task.md","ref":"programing-manual/task/task.md","articles":[]},"dir":"ltr"},"config":{"plugins":["tbfed-pagefooter","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy BookOS-developers 2021","modify_label":"修订时间：","modify_format":"YYYY-MM-DD"},"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"jason hu","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"book for xbook2","language":"zh-hans","links":{"sidebar":{"bookos":"https://book-os.org"}},"gitbook":"3.2.3","description":"document for xbook2 kernel"},"file":{"path":"programing-manual/timer/timer.md","mtime":"2021-06-16T14:03:55.636Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-06-16T14:18:02.822Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

